<style>
    #cell-2 { width: 400px; }
    #cell-2 dt { width: 60px; }
    #cell-2 dd { width: 300px; }
    #cell-3 { width: 500px; }
    #cell-3 dt { width: 100px; }
    #cell-3 dd { width: 360px; }
    div.vgrid dd { line-height: 20px; padding-right: 40px; }
</style>    
    
<div class="vheader">
    <h1><?php echo $this->translate("Group profile") ?></h1>
    <p><?php echo $this->Groups->d->Name ?>
</div>

<div class="vcontent">
    
    <div id="cell-2">
        <dl>
            <dt><?php echo $this->translate("Group") ?></dt>
            <dd><?php echo $this->Groups->d->Name ?></dd> 
            <dt><?php echo $this->translate("Code") ?></dt>
            <dd><?php echo $this->Groups->d->GroupId ?></dd> 
            <dt><?php echo $this->translate("Status") ?></dt>
            <dd><?php echo $this->replaceEmpty($this->Groups->d->OfficerUserId,$this->translate("Inactive"),$this->translate("Active")) ?></dd> 
            <dt><?php echo $this->translate("Bank") ?></dt>
            <dd><?php echo $this->Groups->d->BankId ?></dd> 
        </dl>    
    </div>
    
        
    <div id="cell-3">
        <dl>
            
            <dt><?php echo $this->translate("Officer") ?></dt>
            <dd><?php echo $this->link('/admin/officer/view',array('id'=>$this->Groups->d->OfficerUserId),$this->Groups->d->OfficerFullName,array('text' => true)) ?></dd>   
            <dt><?php echo $this->translate("Location") ?></dt>
            <dd><?php echo $this->link('/admin/location/view',array('id'=>$this->Groups->d->LocationId),$this->Groups->d->Location,array('text' => true)) ?></dd>    
            <dt><?php echo $this->translate("Community") ?></dt>
            <dd><?php echo $this->Groups->d->Community ?></dd>  
            <dt></dt><dd><br /></dd>
            <dt><?php echo $this->translate("Comments") ?></dt>
            <dd><?php echo $this->replaceEmpty($this->Groups->d->Comments,'-') ?></dd>
             
        </dl>    
    </div>
    
    
    <dl style="height: 120px; position: absolute; bottom: 180px; left: 6px; right: 10px; width:90%;">
        <?php foreach($this->Groups->r->clients as $client) : ?>
        <dt><img style="border: 1px solid #bcd; margin-top: 5px;"  src="/default/photo/thumb/cat/i/id/<?php echo $client->ClientId ?>" /></dt>
        <dd><br />
            <?php echo $this->link('/admin/client/view', array('id'=>$client->ClientId),$client->FullName,array('text' => true)) ?><br />
            <?php echo $client->Code ?>
        </dd>
        <?php endforeach; ?>
    </dl> 
    
</div>

<div class="vgrid">
    <img style="margin-top: 5px;" class="shadow"  src="/default/photo/thumb/cat/g/id/<?php echo $this->Groups->d->GroupId ?>" />

</div>

<div class="vfooter">
    <div class="menu">
        <?php echo $this->link('/admin/bank/add', array('id'=>$this->Groups->d->BankId,'group'=>$this->Groups->d->GroupId),$this->translate("Bank")) ?>  
        <?php echo $this->link('/loan/application/new', array('group'=>$this->Groups->d->GroupId),$this->translate("New loan application")) ?>
    </div>
</div>